<%@page import="cn.three.eneity.Classify"%>
<%@page import="java.util.List"%>
<%@page import="cn.three.biz.ClassifyBiz"%>
<%@page import="cn.three.eneity.Admin"%>
<%@page import="cn.three.eneity.Shop"%>
<%@page import="cn.three.biz.ShopdaoBiz"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<body background="../pic1/ManBgroud.gif">
     <div style="height: 50px;"><h2>请要求添加商品信息</h2></div>
     
     <form action="AddShopServlet" method="post" enctype="multipart/form-data">
     
     
       <%
   request.setCharacterEncoding("UTF-8");
   response.setCharacterEncoding("UTF-8");
	ShopdaoBiz biz=new ShopdaoBiz();
	Shop shop =new Shop();
	
    Admin admin = (Admin)session.getAttribute("admin");
    ClassifyBiz classifyBiz =new ClassifyBiz();
    List <Classify> classifys = classifyBiz.showClassify();
	%>
    商品类别:<select name="classifyname">
   		 <%for(int i =0;i<classifys.size();i++){
    			Classify classify= classifys.get(i);
   		 %>
   
   		 <option value="<%=classify.getClassifyId() %>"><%=classify.getClassifyName() %></option>
    
    		<%} %>
      	 </select><br/><br/>
    商家名称:<input type="text" name="adminn" value="<%=admin.getAdminName()%>" readonly="readonly"/><br/><br/>
    商品名称:<input type="text" name="shopname" size="50"/><br/><br/>
    商品价格:<input type="text" name="shopprice" size="50"/><br/><br/>
    商品详情:<input type="text" name="shopdetalis" size="50"/><br/><br/>
    商品数量:<input type="text" name="shopcount" size="50"/><br/><br/>
    商品图片：<input type="file" name ="pic"><br/>
    <br><br>
    <input type="submit" value="确认添加">
    
    </form>
  </body>
</body>
</html>